package lab02.Test29;

/**
 * Created by lady on 2017/11/30.
 */
public class Test
{public static void main(String[] args) {
    //行为：创建一个一维数组
    int[] numbers=new int[5];
    numbers[0]=32;
    numbers[1]=56;
    numbers[2]=88;
    numbers[3]=99;
    numbers[4]=66;

    try{
        System.out.println(numbers[5]);
    }catch(ArrayIndexOutOfBoundsException e){
        System.out.println("数组越界！！！");
    }finally{                                           //加一个finally子句，
        System.out.println("最后都会执行的语句！");
    }


}

}
